package com.zr.service.impl;

import com.zr.dao.TreeDataDao;
import com.zr.dao.impl.TreeDataDaoImpl;
import com.zr.service.TreeDataService;

import net.sf.json.JSONArray;
/**
 * 取树形数据，生成树形目录的服务层实现
 * @author Administrator
 *
 */
public class TreeDataServiceImpl implements TreeDataService{

	TreeDataDao tdd = new TreeDataDaoImpl();
	
	@Override
	public JSONArray getTreeDataById(int tpid) {
		
		JSONArray jArray = tdd.getTreeDataAllById(tpid);
		
		return jArray;
	}

}
